﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    // Component上级实体基类
    public abstract class ComponentSuperior:Component
    {
        /*
          实体可以看做一可以挂载其他组件的特殊组件
          为了隔离组件与实体，避免发生混用,实体均以该类为基类。
        */
        //上级实体GID
        public long InstID { get; set; }
        
        protected ComponentSuperior()
        {
            //this.InstID = IDGenerater.GenerateId();
        }
        protected ComponentSuperior(long id)
        {
            this.InstID = id;
        }
        public override void Dispose()
        {
            if(this.IsDisposed)
                return;
            base.Dispose();
        }

    }
}
